<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //  请利用冒泡排序对数组 [3, 8, 5, 2, 6, 9] 进行从大到小的排序。
        var num = [3, 8, 5, 2, 6, 9];
        num.sort(function (a, b) {
            return b - a;
        })

        console.log(num);



        console.log(!!5);
    </script>
</head>

<body>

</body>

</html>